package com.wxtwxt.ruralmall.search.vo;

import com.wxtwxt.ruralmall.common.to.SkuEsModel;
import lombok.Data;

import java.util.List;

/**
 * @author Wxt
 * @create 2023-04-13 9:20
 */
@Data
public class SearchResult {
    private List<SkuEsModel> skuEsModelList;  // 所有商品信息
    private Integer pageNum;                  // 页码
    private Long total;                       // 总记录数
    private Integer totalPages;               // 总页码
    private List<Integer> pageNavs;
    private List<BrandVo> brandVoList;        // 品牌信息
    private List<CatalogVo> catalogVoList;    // 分类信息
    private List<AttrVo> attrVoList;          // 商品属性信息
    private List<NavVo> navs;

    @Data
    public static class NavVo {
        private String navName;
        private String navValue;
        private String link;
    }

    @Data
    public static class BrandVo {
        private Long brandId;
        private String brandName;
        private String brandImg;
    }

    @Data
    public static class CatalogVo {
        private Long catalogId;
        private String catalogName;
    }

    @Data
    public static class AttrVo {
        private Long attrId;
        private String attrName;
        private List<String> attrValue;
    }
}

